<!--
<ion-view hide-nav-bar="true" id="login-register">
    <ion-content>
        <div class="login-tabs padding">
            <div class="login-title">
                <img src="img/login/logo.png">
            </div>
            <div class="login-tab clearfix">
                <div class="login-tab-item fl" ng-click="loginOrRegister(1)" ng-class="{active:isLogin == 1}">
                    <span>登录</span>
                </div>
                <div class="login-tab-item fl" ng-click="loginOrRegister(0)" ng-class="{active:isLogin == 0}">
                    <span>注册</span>
                </div>
            </div>
        </div>
        <div class="login-content" ng-show="isLogin == 1">
            <label class="item item-input background-transparent border-none">
                <i>+86 |&nbsp;</i>
                <input class="loginother" type="text" placeholder="请输入账号" ng-model="user.email"/>
            </label>
            <label class="item item-input background-transparent border-none">
                <input class="loginother" type="password" placeholder="密码" ng-model="user.password"/>
            </label>
            <div class="login-menu clearfix">
                <span class="fl" ng-click="openQQ()">联系客服</span>
                <span class="fr" ui-sref="reset-password">忘记密码?</span>
            </div>
            <div class="confirm-login" ng-click="login()">
                登录
            </div>
        </div>
        <div class="login-content" ng-show="isLogin == 0">
            <label class="item item-input background-transparent border-none">
                <i>+86 |&nbsp;</i>
                <input class="loginother" type="text" placeholder="请输入账号" ng-model="user1.phone"/>
            </label>
            <div class="item item-input background-transparent border-none">
                <input class="loginother" type="text" placeholder="请输入账号" ng-model="user1.code"/>
                <i style="color:#CA2224;" id="send-msg" ng-click="sendMsg()">获取验证码</i>
            </div>
            <label class="item item-input background-transparent border-none">
                <input class="loginother" type="password" placeholder="密码" ng-model="user1.password"/>
            </label>
            <label class="item item-input background-transparent border-none">
                <input class="loginother" type="password" placeholder="确认密码" ng-model="user1.passwordTwo"/>
            </label>
            <div class="confirm-login" ng-click="register()">
                注册
            </div>
        </div>
    </ion-content>
</ion-view>-->
<ion-view hide-nav-bar="true" id="new-login-register" style="background-color:#F1F0EE;">
    <ion-content class="login_bg" scroll="false">
        <div class="title" >
            <div class="title_text" style="font-size: 24px">芝麻计划</div>
            <div class="login-tabs clearfix">
                <!--{{isLogin?"还没有账号？马上注册":"已有账号？马上登录"}}-->
                <div class="fl" ng-class="{'login-tabs-active':isLogin == 1}" ng-click="loginOrRegister(1)">登录</div>
                <div class="fl" ng-class="{'login-tabs-active':isLogin == 2}" ng-click="loginOrRegister(2)">注册</div>
            </div>
        </div>

        <div class="container" ng-show="isLogin == 1">
            <label class="item-input background-container border-none">
                <i class="icon new-tel"></i>
                <input class="loginother" type="text" placeholder="手机号" ng-model="user.email"/>
            </label>
            <label class="item-input background-container border-none">
                <i class="icon new-pwd"></i>
                <input class="loginother" type="password" placeholder="密码" ng-model="user.password"/>
            </label>
            <div class="clearfix method">
                <!--<span class="fl" ng-click="openQQ()">-->
                <!--联系客服-->
                <!--</span>-->
                <span class="fr" ui-sref="reset-password">
                    忘记密码
                </span>
            </div>
            <div class="login" ng-click="login()">
                登录
            </div>
        </div>
        <div class="container" ng-show="isLogin == 2">
            <label class="item-input background-container border-none">
                <i class="icon new-tel"></i>
                <input class="loginother" type="text" placeholder="手机号" ng-model="user1.phone"/>
            </label>
            <div class="item-input background-container border-none" style="margin-bottom: 16px">
                <i class="icon new-code"></i>
                <input class="loginother" type="tel" placeholder="验证码" ng-model="user1.code"/>
                <i class="code" id="send-msg" ng-click="sendMsg()">获取验证码</i>
            </div>
            <label class="item-input background-container border-none">
                <i class="icon new-pwd"></i>
                <input class="loginother" type="password" placeholder="密码" ng-model="user1.password"/>
            </label>
            <label class="item-input background-container border-none">
                <i class="icon new-pwd"></i>
                <input class="loginother" type="password" placeholder="密码" ng-model="user1.passwordTwo"/>
            </label>
            <div class="login" ng-click="register()">
                注册
            </div>
        </div>

    </ion-content>
</ion-view>
